package org.szy.monitor.param;

import org.noear.solon.validation.annotation.NotBlank;
import org.noear.solon.validation.annotation.NotNull;

/**
 * 缓存参数
 *
 * @author 孙志阳
 * @date 2023-07-05
 * @since 1.0.0
 **/
public class CacheParam {

    /**
     * 缓存标识
     */
    @NotBlank("标识不能为空")
    private String key;

    @NotNull("值不能为空")
    private Object value;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }
}
